$OpenBSD: patch-v8_src_base_platform_platform-posix_cc,v 1.2 2015/05/06 14:27:24 robert Exp $
--- v8/src/base/platform/platform-posix.cc.orig.port	Wed Apr 15 00:32:36 2015
+++ v8/src/base/platform/platform-posix.cc	Wed Apr 15 08:32:50 2015
@@ -275,6 +275,8 @@ int OS::GetCurrentThreadId() {
   return static_cast<int>(thread_self());
 #elif V8_OS_SOLARIS
   return static_cast<int>(pthread_self());
+#elif V8_OS_OPENBSD
+  return reinterpret_cast<uint64_t>(pthread_self());
 #else
   return static_cast<int>(reinterpret_cast<intptr_t>(pthread_self()));
 #endif
